package com.xszx.server.mapper;

import com.xszx.server.dto.Page;
import com.xszx.server.entity.Chapter;
import com.xszx.server.entity.Section;

import java.util.List;

public interface SectionMapper {
    //查询全部的大章
    List<Section> findAll(Page page);

    //查询课程下的小节
    List<Section> findSectionsByCourse(String courseId);

    //统计当前表中的数据条数
    int findCount();

    int deleteByPrimaryKey(String id);

    int insert(Section record);

    int insertSelective(Section record);

    Section selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Section record);

    int updateByPrimaryKey(Section record);
}
